package edu.jxnu.zhangjinsong.unemploymenttracker.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("employment_record")
public class EmploymentRecord {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    
    @TableField("person_id")
    private String personId;
    
    @TableField
    private String company;
    
    @TableField
    private String position;
    
    @TableField
    private String salary;
    
    @TableField("start_date")
    private LocalDate startDate;
    
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;
    
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}